﻿<%
    if not userRightObj.canManage then
        message("您没有设置权限")
    end if
    call OpenDB

%>
<style type="text/css">

.menuitem{
    font-size:10pt;
    padding-left:10px;
}

.menuitem a:link {  text-decoration: none; color: #000000}
.menuitem a:visited {  text-decoration: none; color: #000000}
.menuitem a:hover {  text-decoration: none; color: #000000}

</style>

<table border=0 border="0" cellspacing="1" cellpadding="2" width=100% >
  <tr>
    <td class=menuitem align=center >欢迎<%=userObj.userName%>！</td>
  </tr>
  <tr>
    <td class=menuitem align=center>控制面板 [<a href="../index.asp?blog_id=<%=blogObj.blogId%>">返回主页</a>]</td>
  </tr>
  <tr>
    <td class=menuitem >&nbsp;</td>
  </tr>

  <tr>
    <td bgcolor=#ffffff class=menuitem ><a href="basic.asp?blog_id=<%=blogObj.blogId%>"><b>ˇ </b>基本信息</a></td>
  </tr>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><b>ˇ </b><a href="templet.asp?blog_id=<%=blogObj.blogId%>">模版设置</a></td>
  </tr>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><a href="user.asp?blog_id=<%=blogObj.blogId%>"><b>ˇ </b>用户权限</a></td>
  </tr>  
<%
      sql = " select group_id,group_name from blog_user_group where blog_id=" & blogObj.blogId & " order by group_id"
      rs.open sql, conn, 1, 1
      if not rs.eof then
        do until rs.eof
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem nowrap >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="user.asp?blog_id=<%=blogObj.blogId%>&group_id=<%=rs("group_id")%>"><%=rs("group_name")%></a></td>
  </tr>  
<%
          rs.moveNext()
        loop
      end if
      rs.close()
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><a href="category.asp?blog_id=<%=blogObj.blogId%>"><b>ˇ </b>栏目分类</a></td>
  </tr>  
<%
      sql = " select cat_id,  cat_name from blog_category  where blog_id=" & blogObj.blogId & " order by display_seq"
      rs.open sql, conn, 1, 1
      if not rs.eof then
        do until rs.eof
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="category.asp?blog_id=<%=blogObj.blogId%>&cat_id=<%=rs("cat_id")%>"><%=rs("cat_name")%></a></td>
  </tr>  
<%
          rs.moveNext()
        loop
      end if
      rs.close()
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><b>ˇ </b><a href="links.asp?blog_id=<%=blogObj.blogId%>">链接管理</a></td>
  </tr>  
<%
      sql = " select group_id,  group_name from blog_link_group  where blog_id=" & blogObj.blogId & " order by display_seq"
      rs.open sql, conn, 1, 1
      if not rs.eof then
        do until rs.eof
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="links.asp?blog_id=<%=blogObj.blogId%>&group_id=<%=rs("group_id")%>"><%=rs("group_name")%></a></td>
  </tr>  
<%
          rs.moveNext()
        loop
      end if
      rs.close()
%>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><b>ˇ </b><a target="_blank" href="../refer.asp?blog_id=<%=blogObj.blogId%>">来访信息</a></td>
  </tr>
  <tr>
    <td bgcolor=#ffffff class=menuitem ><b>ˇ </b><a target="_blank" href="../netfolder/index.asp?blog_id=<%=blogObj.blogId%>">网络文件夹</a></td>
  </tr>  
  <tr>
    <td bgcolor=#ffffff class=menuitem >&nbsp;</td>
  </tr>  
  <tr>
    <td class=menuitem align=center>&nbsp;</td>
  </tr>
  <tr>
    <td class=menuitem align=center>[<a href="../index.asp?blog_id=<%=blogObj.blogId%>">返回主页</a>]&nbsp;</td>
  </tr>
</table>
